package com.model.speelveld;

import com.view.speelveld.GameObject;
import com.view.speelveld.GameView;

public class Path extends GameObject{
	
	private int  x; 
	private int  y;
	private LevelType type ;
	public Path(int x , int y , LevelType type)
	{
		super(GameView.PATH);
		this.x = x;
		this.y = y;
		this.type = type;
	}
	public int getX() {
		return x;
	}
	public void setX(int x) {
		this.x = x;
	}
	public int getY() {
		return y;
	}
	public void setY(int y) {
		this.y = y;
	}
	@Override
	public boolean equals(Object o)
	{
		if(o != null )
		{
			if(this.getClass() == o.getClass())
			{
				
				if(this.x == ((Path) o).getX() && this.y == ((Path) o).getY() )
				{
					return true;
				}
			}
		}
		return false;
	}

}
